Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flags for delete behaviour of authz scopes and policies #905

Merged

Conversation

f11h
Copy link
Contributor

@f11h f11h commented Jul 27, 2023

What this PR does / why we need it:

Remotly managed authz scopes and policies will be deleted if they are not defined in the realm-config.
Especially (user related) policies need to be set up based on the existing users and their rights. The user policies will grow with growing user base. Users and their specific permissions should not be configured through the realm-config.

To prevent the tool to delete the existing policies and scopes I introduced 2 new config flags to select a no-delete mode (like it already exists for authz resources)

Which issue this PR fixes:
fixes #783

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #905 (8c8b720) into main (f82ca1b) will increase coverage by 0.00%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##               main     #905   +/-   ##
=========================================
  Coverage     95.53%   95.53%           
- Complexity     1322     1324    +2     
=========================================
  Files            78       78           
  Lines          4273     4279    +6     
  Branches        475      477    +2     
=========================================
+ Hits           4082     4088    +6     
  Misses           91       91           
  Partials        100      100           
Files Coverage Δ
...loak/config/properties/ImportConfigProperties.java 100.00% <100.00%> (ø)
...nfig/service/ClientAuthorizationImportService.java 94.00% <100.00%> (+0.04%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@thomasdarimont
Copy link
Contributor

Thanks @f11h for your contribution! Would you mind squashing your commits into one for this PR?

@f11h f11h force-pushed the feat/add-flags-for-authz-scopes-and-policies branch from 1b3b63e to 8c8b720 Compare October 12, 2023 08:55
@f11h
Copy link
Contributor Author

f11h commented Oct 12, 2023

Hi @thomasdarimont - Done!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@st3v0rr st3v0rr merged commit e7f4427 into adorsys:main Oct 13, 2023
12 checks passed
@f11h f11h deleted the feat/add-flags-for-authz-scopes-and-policies branch October 13, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Policy Deleted - Partial import of client authorization with multiple files
3 participants